import matplotlib.pyplot as plt
phoneNum= ['18600072007','15191793595','15843346688','13532434342','13528543191','13584625897','13212432434','13743543546','13245546774','13125803929']
up= [337734,221824,191020,166349,163189,151490,107096,79012,77126,76839]
down= [208341,269299,126179,131722,111611,72031,82429,77749,60462,40607]
plt.figure()
x = range(len(phoneNum))
plt.xticks(range(len(phoneNum)), phoneNum, fontsize=9, rotation=45)
plt.bar(range(len(phoneNum)), up, 0.4,color="red")
plt.xlabel("phoneNum")
plt.ylabel("upwardFlow")
plt.title("cyj2018213150")
plt.show( )

plt.figure()
x = range(len(phoneNum))
plt.xticks(range(len(phoneNum)), phoneNum, fontsize=9, rotation=45)
plt.bar(range(len(phoneNum)), down, 0.4,color="green")
plt.xlabel("phoneNum")
plt.ylabel("downwardFlow")
plt.title("cyj2018213150")
plt.show( )